import { ApiCall } from "tsrpc";
import { ReqAtt, ResAtt } from "../../../shared/master/body/PtlAtt";
import { player } from "../../../model/fight/body/player";
import { template } from "../../../shared/master/MsgAction";

export default async function (call: ApiCall<ReqAtt, ResAtt>) {
    let user = call.req._player as player;

    let tpl = user.getMsgAttTpl();
    tpl.data.render_type = call.req.render_type;
    user.sendMsg(tpl.template,tpl.data);
    call.succ({})
}